import { Box, Link } from "@material-ui/core";
import { useTranslation } from "react-i18next";

function Copyright(props) {
    const { t } = useTranslation();
    return (
        <div {...props}>
            <Box variant="body2" align="center">
                {'Copyright © '}
                <Link target="_blank" color="inherit" href="https://www.yonyouaud.com/">
                    {t('yonyouaudit')}
                </Link>{' '}
                {new Date().getFullYear()}
                {'.'}
            </Box>
        </div>
    );
}

export default Copyright;